package com.crp.unitalinforbaseplat.app.sys.dao;

import com.crp.unitalinforbaseplat.app.sys.entity.SelectEntity;
import com.crp.unitalinforbaseplat.app.sys.entity.User;
import com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity.EnterStore;
import com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity.PageBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     *@Description 通过名称查询
     *@Params [name]
     *@return com.anhuishangjue.squarenavigationsys.entity.User
     *@Author chenzhicai
     *@Date 2018/11/3
     *@Time 8:54 PM
     **/
    User selectByName(String username);

    List<User> selectAllUsers(PageBean<User> userPageBean);

    List<SelectEntity> listUserInfo(User sysUserInfo);

    List<SelectEntity> listUserInfoForProfession(User sysUserInfo);

    List<EnterStore> listGroupByPartsId();
}
